﻿using ESRI.ArcGIS.Geometry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DGIS.Service.IService.IGeometryService
{
    public interface IGeometryRelationService
    {
        /// <summary>
        /// 检查B图形是否在A图形范围内
        /// </summary>
        /// <param name="geometryA"></param>
        /// <param name="geometryB"></param>
        /// <returns></returns>
        bool CheckContain(IGeometry geometryA, IGeometry geometryB);

        /// <summary>
        /// 检查A和B图形是否交叉
        /// </summary>
        /// <param name="geometryA"></param>
        /// <param name="geometryB"></param>
        /// <returns></returns>
        bool CheckCross(IGeometry geometryA, IGeometry geometryB);

        /// <summary>
        /// 检查A和B图形是否相接
        /// </summary>
        /// <param name="geometryA"></param>
        /// <param name="geometryB"></param>
        /// <returns></returns>
        bool CheckTouch(IGeometry geometryA, IGeometry geometryB);

        /// <summary>
        /// 获取A和B图形间的最短距离
        /// </summary>
        /// <param name="geometryA"></param>
        /// <param name="geometryB"></param>
        /// <returns></returns>
        double GetMinDistance(IGeometry geometryA, IGeometry geometryB);
    }
}
